package com.dkm.ec.so.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.so.domain.ReturnImg;
import com.dkm.ec.so.repository.ReturnImgRepository;
import com.dkm.ec.so.persistence.dao.ReturnImgQueryDao;
import com.dkm.ec.so.persistence.entity.ReturnImgPo;

/**
 * 对象功能:退货单附图 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-06-20 19:00:07
 */
@Repository
public class ReturnImgRepositoryImpl extends AbstractRepository<String, ReturnImgPo,ReturnImg> implements ReturnImgRepository{
	  
	@Resource
	private  ReturnImgQueryDao returnImgQueryDao;

	public ReturnImg newInstance() {
		ReturnImgPo po = new ReturnImgPo();
		ReturnImg returnImg = SpringHelper.getBean(ReturnImg.class);
		returnImg.setData(po);
		return returnImg;
	}

	public ReturnImg newInstance(ReturnImgPo po) {
		ReturnImg returnImg = SpringHelper.getBean(ReturnImg.class);
		returnImg.setData(po);
		return returnImg;
	} 
	
	@Override
	protected IQueryDao<String, ReturnImgPo> getQueryDao() {
		return returnImgQueryDao;
	}
	
}
